package gift.justflower.ecp.bean;

import org.nutz.dao.entity.annotation.EL;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Prev;
import org.nutz.dao.entity.annotation.Table;
import org.nutz.dao.entity.annotation.Many;
import java.util.List;

/**
 * 用户对象
 * author:AB
 * time:2018年7月17日 11:52:59
 **/
@Table("t_user")
public class User {
    @Name
    @Prev(els = @EL("uuid()"))
    private String id;
    private String name;
    private String nickname;
    private String password;
    @Many(field="userId")
    private List<Goods> goodsList;
    @Many(field="userId")
    private List<Type> typeList;
    @Many(field="userId")
    private List<Sell> sellList;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public List<Goods> getGoodsList(){
        return goodsList;
    }

    public void setGoodsList(List<Goods> goodsList){
        this.goodsList = goodsList;
    }

    public List<Type> getTypeList(){
        return typeList;
    }

    public void setTypeList(List<Type> typeList){
        this.typeList = typeList;
    }

    public List<Sell> getSellList(){
        return sellList;
    }

    public void setSellList(List<Sell> sellList){
        this.sellList = sellList;
    }
}